GET Hero Counters
/openmlbb/academy/heroes/{hero_identifier}/counters
API Path: /api/academy/heroes/{hero_identifier}/counters
Retrieve counter information for a specific hero. Supports query parameters for rank, pagination, and localization.
Path parameters:
- hero_identifier: Hero identifier as numeric hero ID or hero name. Accepts values like
30,Yi Sun-shin, oryisunshin.
Query parameters:
- rank: Rank filter. Allowed values:
all,epic,legend,mythic,honor,glory. - size: Number of items per page (minimum: 1).
- index: Page index (starting from 1).
- lang: Language code for localized content (default:
en).
The response includes hero counter data:
- records: Array of hero entries, each containing:
- _id: Unique record identifier.
- _createdAt: Creation timestamp.
- _updatedAt: Last update timestamp.
- data:
- main_heroid: Target hero ID.
- main_hero_ban_rate: Ban rate of the target hero.
- main_hero_pick_rate: Pick rate of the target hero.
- main_hero_win_rate: Win rate of the target hero.
- sub_hero: Array of counter heroes, each containing:
- heroid: Counter hero ID.
- hero_win_rate: Win rate of the counter hero.
- increase_win_rate: Impact value showing how much this hero improves or reduces win rate against the target.
This endpoint is useful for:
- Analyzing which heroes perform well against the target hero.
- Understanding matchup dynamics.
- Guiding players in drafting strategies.
Python Example
from OpenMLBB import OpenMLBB
client = OpenMLBB()
response = client.academy.hero_counters("miya", rank="all", size=20, index=1, lang="en")
print(response)
Path and Query Parameters
| Name | In | Type | Required | Default |
|---|---|---|---|---|
| hero_identifier | path | string | yes | - |
| rank | query | string | no | all |
| size | query | integer | no | 20 |
| index | query | integer | no | 1 |
| lang | query | string | no | en |